﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverApp.ViewModel.OperationsFile;
using SilverApp.View.OperationsFile;


namespace SilverApp.ViewModel
{
    public class FileOperationViewModel : MainPageViewModel
    {
        private ICommand aff_upload;

        public FileOperationViewModel()
        {
            aff_upload = new RelayCommand(AffUploadCommand, CanAffUpload);
            CurrentPage = null;
        }

        public void AffUploadCommand(object parameter)
        {
            UploadViewModel vmUpload = new UploadViewModel(this);
            CurrentPage = new UploadView(vmUpload);
            vmUpload.LookingForFile();
        }

        public bool CanAffUpload(object parameter)
        {
            return true;
        }

        public ICommand Aff_upload
        {
            get { return aff_upload; }
            set { aff_upload = value; }
        }
    }
}
